package com.ktg.mes.pro.domain;


import com.ktg.common.annotation.Excel;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Data
@Accessors(chain = true)
public class ExcelStockModel implements Serializable {

    /**
     * 产品名称
     */
    @Excel(name = "")
    private String productName;

    /**
     * 机台号
     */
    @Excel(name = "",width = 10)
    private String deviceCode;

    /**
     * 时间
     */
    @Excel(name = "",width = 10)
    private String timeNum;

    /**
     * 生产周期
     */
    @Excel(name = "",width = 10)
    private String productionCycle;

    /**
     * 排产任务
     */
    private List<String> productTask;


    public void setProductTask(List<String> productTask) {
        this.productTask = productTask;
        if (productTask == null || productTask.size() == 0){
            return;
        }
        if (productTask.size() >= 1){
            data1 = productTask.get(0);
        }
        if (productTask.size() >= 2){
            data2 = productTask.get(1);
        }
        if (productTask.size() >= 3){
            data3 = productTask.get(2);
        }
        if (productTask.size() >= 4){
            data4 = productTask.get(3);
        }
        if (productTask.size() >= 5){
            data5 = productTask.get(4);
        }
        if (productTask.size() >= 6){
            data6 = productTask.get(5);
        }
        if (productTask.size() >= 7){
            data7 = productTask.get(6);
        }
        if (productTask.size() >= 8){
            data8 = productTask.get(7);
        }
        if (productTask.size() >= 9){
            data9 = productTask.get(8);
        }
        if (productTask.size() >= 10){
            data10 = productTask.get(9);
        }
        if (productTask.size() >= 11){
            data11 = productTask.get(10);
        }
        if (productTask.size() >= 12){
            data12 = productTask.get(11);
        }
        if (productTask.size() >= 13){
            data13 = productTask.get(12);
        }
        if (productTask.size() >= 14){
            data14 = productTask.get(13);
        }
        if (productTask.size() >= 15){
            data15 = productTask.get(14);
        }
        if (productTask.size() >= 16){
            data16 = productTask.get(15);
        }
        if (productTask.size() >= 17){
            data17 = productTask.get(16);
        }
        if (productTask.size() >= 18){
            data18 = productTask.get(17);
        }
        if (productTask.size() >= 19){
            data19 = productTask.get(18);
        }
        if (productTask.size() >= 20){
            data20 = productTask.get(19);
        }
        if (productTask.size() >= 21){
            data21 = productTask.get(20);
        }
        if (productTask.size() >= 22){
            data22 = productTask.get(21);
        }
        if (productTask.size() >= 23){
            data23 = productTask.get(22);
        }
        if (productTask.size() >= 24){
            data24 = productTask.get(23);
        }
        if (productTask.size() >= 25){
            data25 = productTask.get(23);
        }
        if (productTask.size() >= 26){
            data26 = productTask.get(25);
        }
        if (productTask.size() >= 27){
            data27 = productTask.get(26);
        }
        if (productTask.size() >= 28){
            data28 = productTask.get(27);
        }
        if (productTask.size() >= 29){
            data29 = productTask.get(28);
        }
        if (productTask.size() >= 30){
            data30 = productTask.get(29);
        }
        if (productTask.size() >= 31){
            data31 = productTask.get(30);
        }
        if (productTask.size() >= 32){
            data32 = productTask.get(31);
        }
        if (productTask.size() >= 33){
            data33 = productTask.get(32);
        }
        if (productTask.size() >= 34){
            data34 = productTask.get(33);
        }
        if (productTask.size() >= 35){
            data35 = productTask.get(34);
        }
        if (productTask.size() >= 36){
            data36 = productTask.get(35);
        }
        if (productTask.size() >= 37){
            data37 = productTask.get(36);
        }
        if (productTask.size() >= 38){
            data38 = productTask.get(37);
        }
    }

    @Excel(name = "",width = 10,height = 60)
    public String data1;

    @Excel(name = "",width = 10,height = 60)
    public String data2;

    @Excel(name = "",width = 10,height = 60)
    public String data3;

    @Excel(name = "",width = 10,height = 60)
    public String data4;

    @Excel(name = "",width = 10,height = 60)
    public String data5;

    @Excel(name = "",width = 10,height = 60)
    public String data6;

    @Excel(name = "",width = 10,height = 60)
    public String data7;

    @Excel(name = "",width = 10,height = 60)
    public String data8;

    @Excel(name = "",width = 10,height = 60)
    public String data9;

    @Excel(name = "",width = 10,height = 60)
    public String data10;

    @Excel(name = "",width = 10,height = 60)
    public String data11;

    @Excel(name = "",width = 10,height = 60)
    public String data12;

    @Excel(name = "",width = 10,height = 60)
    public String data13;

    @Excel(name = "",width = 10,height = 60)
    public String data14;

    @Excel(name = "",width = 10,height = 60)
    public String data15;

    @Excel(name = "",width = 10,height = 60)
    public String data16;

    @Excel(name = "",width = 10,height = 60)
    public String data17;

    @Excel(name = "",width = 10,height = 60)
    public String data18;

    @Excel(name = "",width = 10,height = 60)
    public String data19;

    @Excel(name = "",width = 10,height = 60)
    public String data20;

    @Excel(name = "",width = 10,height = 60)
    public String data21;

    @Excel(name = "",width = 10,height = 60)
    public String data22;

    @Excel(name = "",width = 10,height = 60)
    public String data23;

    @Excel(name = "",width = 10,height = 60)
    public String data24;

    @Excel(name = "",width = 10,height = 60)
    public String data25;

    @Excel(name = "",width = 10,height = 60)
    public String data26;

    @Excel(name = "",width = 10,height = 60)
    public String data27;

    @Excel(name = "",width = 10,height = 60)
    public String data28;

    @Excel(name = "",width = 10,height = 60)
    public String data29;

    @Excel(name = "",width = 10,height = 60)
    public String data30;

    @Excel(name = "",width = 10,height = 60)
    public String data31;

    @Excel(name = "",width = 10,height = 60)
    public String data32;

    @Excel(name = "",width = 10,height = 60)
    public String data33;

    @Excel(name = "",width = 10,height = 60)
    public String data34;

    @Excel(name = "",width = 10,height = 60)
    public String data35;

    @Excel(name = "",width = 10,height = 60)
    public String data36;

    @Excel(name = "",width = 10,height = 60)
    public String data37;

    @Excel(name = "",width = 10,height = 60)
    public String data38;








}
